class MydailyDetailModel {
  int? errcode;
  String? errmsg;
  Data? data;
  String? message;

  MydailyDetailModel({this.errcode, this.errmsg, this.data, this.message});

  MydailyDetailModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = this.message;
    return data;
  }
}

class Data {
  int? id;
  String? title;
  String? content;
  String? createDate;
  String? dateBeauty;
  String? author;
  String? headerImg;
  String? teamName;
  int? comments;
  int? zans;
  var is_zan;
  String? state;
  String? yesterday;
  String? tomorrow;

  Data(
      {this.id,
        this.title,
        this.content,
        this.createDate,
        this.dateBeauty,
        this.author,
        this.headerImg,
        this.teamName,
        this.comments,
        this.zans,
        this.is_zan,
        this.state,
        this.yesterday,
        this.tomorrow});

  Data.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    content = json['content'];
    createDate = json['create_date'];
    dateBeauty = json['date_beauty'];
    author = json['author'];
    headerImg = json['header_img'];
    teamName = json['team_name'];
    comments = json['comments'];
    zans = json['zans'];
    is_zan = json['is_zan'];
    state = json['state'];
    yesterday = json['yesterday'];
    tomorrow = json['tomorrow'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['content'] = this.content;
    data['create_date'] = this.createDate;
    data['date_beauty'] = this.dateBeauty;
    data['author'] = this.author;
    data['header_img'] = this.headerImg;
    data['team_name'] = this.teamName;
    data['comments'] = this.comments;
    data['zans'] = this.zans;
    data['state'] = this.state;
    data['yesterday'] = this.yesterday;
    data['tomorrow'] = this.tomorrow;
    return data;
  }
}
